
// LangToolsView.cpp : implementation of the CLangToolsView class
//

#include "stdafx.h"
#include "LangTools.h"

#include "LangToolsDoc.h"
#include "LangToolsView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CLangToolsView

IMPLEMENT_DYNCREATE(CLangToolsView, CEditView)

BEGIN_MESSAGE_MAP(CLangToolsView, CEditView)
	ON_WM_CREATE()
END_MESSAGE_MAP()

// CLangToolsView construction/destruction

CLangToolsView::CLangToolsView()
{
	// TODO: add construction code here

}

CLangToolsView::~CLangToolsView()
{
}

BOOL CLangToolsView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	BOOL bPreCreated = CEditView::PreCreateWindow(cs);
	cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL);	// Enable word-wrapping

	return bPreCreated;
}


// CLangToolsView diagnostics

#ifdef _DEBUG
void CLangToolsView::AssertValid() const
{
	CEditView::AssertValid();
}

void CLangToolsView::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}

CLangToolsDoc* CLangToolsView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CLangToolsDoc)));
	return (CLangToolsDoc*)m_pDocument;
}
#endif //_DEBUG


// CLangToolsView message handlers

int CLangToolsView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CEditView::OnCreate(lpCreateStruct) == -1)
		return -1;

	
	return 0;
}
